/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoopp.qcoinpay;

import android.app.Activity;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.ImageView;
import android.widget.ImageView.ScaleType;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import android.widget.TextView;

public final class bg {
    Activity a;
    private bi f;
    public LinearLayout b;
    public TextView c;
    public TextView d;
    public TextView e;

    public bg(Activity paramActivity) {
        this.a = paramActivity;
        this.f = bi.a(this.a);
        (paramActivity = this).b = new LinearLayout(paramActivity.a);
        paramActivity.b.setOrientation(1);
        Object localObject1 = new af(paramActivity.a, null);
        paramActivity.b.addView((View) localObject1, new LinearLayout.LayoutParams(-1, cz.a(paramActivity.a, 48.5F)));
        (localObject1 = new ImageView(paramActivity.a)).setScaleType(ImageView.ScaleType.FIT_XY);
        ((ImageView) localObject1).setImageDrawable(paramActivity.f.a("img_titleshade.png"));
        paramActivity.b.addView((View) localObject1, new LinearLayout.LayoutParams(-1, -2));
        (localObject1 = new ImageView(paramActivity.a)).setScaleType(ImageView.ScaleType.FIT_XY);
        paramActivity.f.a((View) localObject1, "img_success.png");
        (localObject2 = new LinearLayout(paramActivity.a)).setOrientation(1);
        paramActivity.d = new TextView(paramActivity.a);
        paramActivity.d.setTextColor(-13421773);
        paramActivity.d.setTextSize(20.0F);
        ((LinearLayout) localObject2).addView(paramActivity.d, new LinearLayout.LayoutParams(-2, -2));
        paramActivity.c = new TextView(paramActivity.a);
        paramActivity.c.setTextColor(-7829368);
        paramActivity.c.setTextSize(14.0F);
        ((LinearLayout) localObject2).addView(paramActivity.c, new LinearLayout.LayoutParams(-2, -2));
        LinearLayout localLinearLayout = new LinearLayout(paramActivity.a);
        int j = cz.a(paramActivity.a, 45.5F);
        localLinearLayout.addView((View) localObject1, new LinearLayout.LayoutParams(j, j));
        localLinearLayout.addView((View) localObject2, new LinearLayout.LayoutParams(-2, -2));
        paramActivity.e = new TextView(paramActivity.a);
        paramActivity.e.setTextColor(-7829368);
        paramActivity.e.setTextSize(14.0F);
        (localObject1 = new TextView(paramActivity.a)).setGravity(17);
        ((TextView) localObject1).setTextSize(16.0F);
        ((TextView) localObject1).setTextColor(-1);
        paramActivity.f.a((View) localObject1, "btn_nor.9.png", "btn_press.9.png", "btn_nor.9.png");
        ((TextView) localObject1).setText(a.a(b.aV));
        ((TextView) localObject1).setOnClickListener(new at(paramActivity));
        Object localObject2 = new LinearLayout.LayoutParams(-2, -2);
        j = cz.a(paramActivity.a, 20.0F);
        ((LinearLayout.LayoutParams) localObject2).setMargins(j, j, j, 0);
        ((LinearLayout.LayoutParams) localObject2).gravity = 1;
        paramActivity.b.addView(localLinearLayout, (ViewGroup.LayoutParams) localObject2);
        (localObject2 = new LinearLayout.LayoutParams(-2, -2)).setMargins(j, j, j, 0);
        ((LinearLayout.LayoutParams) localObject2).gravity = 1;
        paramActivity.b.addView(paramActivity.e, (ViewGroup.LayoutParams) localObject2);
        int i = cz.a(paramActivity.a, 100.5F) + 2 + cz.a(paramActivity.a, 54.0F);
        if (cy.a(paramActivity.a) > cy.b(paramActivity.a))
            j = cy.b(paramActivity.a) - i;
        else
            j = cy.a(paramActivity.a) - i;
        LinearLayout.LayoutParams localLayoutParams;
        (localLayoutParams = new LinearLayout.LayoutParams(j, cz.a(paramActivity.a, 40.5F))).gravity = 1;
        localLayoutParams.topMargin = cz.a(paramActivity.a, 30.0F);
        paramActivity.b.addView((View) localObject1, localLayoutParams);
    }
}